
<div class="pageContent">
    <form method="post" id="Content_insert" action="{:U('Article/insert')}" onsubmit="return validateCallback(this,navTabAjaxDone);">
        <div class="pageFormContent" layoutH="52">
            <div class="tabs" currentIndex="0" eventType="click">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li>
                                <a href="javascript:;"><span>基本信息</span></a>
                            </li>
                            <li>
                                <a href="javascript:;"><span>图片</span></a>
                            </li>
                        
                        </ul>
                    </div>
                </div>
                <div class="tabsContent" layoutH="82">
                    <div id="product_base">
                        <dl class="nowrap">
                            <dt>
                                <label>
                                    文章分类：
                                </label>
                            </dt>
                            <dd>
                                <select name='data[catid]'>
                                	<volist name='cateinfo' id='cate'>
                                		<option value='{$cate.id}' {if $cate['id'] == $article['catid']} selected='selected' {/if}>
                                			<php>for($i=1;$i<$cate['level'];$i++){
												 	echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
												 }
											</php>
											{$cate.name}
											
											</option>
                                	</volist>								
                                </select>
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>
                                <label>
                                    文章标题：
                                </label>
                            </dt>
                            <dd>
                               <input type='text' name='data[title]' value='{$article.title}' />
							   <input type='hidden' name='data[status]' value='1' />
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>
                                <label>
                                    关键字：
                                </label>
                            </dt>
                            <dd>
                                 <input type='text' name='data[keywords]' value='{$article.keywords}' />
                            </dd>
                        </dl>
           
                        <dl class="nowrap">
                            <dt>
                                <label>
                                    文章链接：
                                </label>
                            </dt>
                            <dd>
                            <input type='text' name='data[url]' value='{$article.url}' />   
							</dd>
                        </dl>
                        <dl class="nowrap image">
                            <dt>
                                <label>
                                    排序：
                                </label>
                            </dt>
                            <dd id="upimagedd">
                             <input type='text' name='data[listorder]' value='{$article.listorder}' />  
							 </dd>
                        </dl>
                                <dl class="nowrap">
                            <dt>
                                <label>
                                    简介：
                                </label>
                            </dt>
                            <dd>
                               <textarea name='data[description]' cols=80 rows=8>{$article.description} </textarea>
							   </dd>
                        </dl>
                        <div class="unit">
                            <p style="width:100%;">
                                内容：
                            </p>
                            <textarea  class="editor" upImgUrl="{:U('Article/upload')}" upImgExt="jpg,jpeg,gif,png" name="data[content]" rows="17" cols="100">
                                {$article.content|addrimage}
                            </textarea>
                        </div>                   
                    </div>


                    <div id="product_attr">
     
                    </div>
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit" onclick="return validateCallback($('#Content_insert'),navTabAjaxDone);">
							<input type="hidden" name="data[id]" value="{$article.id}"/>
                                保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
